<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<c:set value="recruit" var="moduleName" scope="request" />
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>用户</title>
	</head>
	<body>
	<div class="div-content">
		<html:form action="/console/recruit/recruitUserEx.do" styleId="userForm" method="POST">
			<input type="hidden" name="method" class="method" value="save" />
			<html:hidden property="id" />
			<table class="table-layout">
				<tr class="tr-odd">
					<td class="td-label">
						登陆名<span class="required">*</span>
					</td>
					<td>
						<html:text property="loginName" />
					</td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">
						密码<span class="required">*</span>
					</td>
					<td>
						<html:text property="loginPassword" />
					</td>
				</tr>
				<tr class="tr-odd">
					<td class="td-label">
						昵称<span class="required">*</span>
					</td>
					<td>
						<html:text property="otherName" />
					</td>
				</tr>
				<tr class="tr-even">
					<td class="td-label">
						角色
					</td>
					<td>
						<table>
							<logic-el:iterate name="allRoles" id="role" indexId="index">
								<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
									<td>
										<html-el:multibox property="relativeRoleIds">
											<c:out value="${role.id}" />
										</html-el:multibox>
									</td>
									<td>
										<c:out value="${role.title}" />
										&nbsp;
									</td>
								</tr>
							</logic-el:iterate>
						</table>
					</td>
				</tr>
			</table>
			<br />
			<div class="center-opertion">
				<html:submit>提交</html:submit>
				<input type="button" onclick="history.back();" value="取消" />
			</div>
		</html:form>
	</div>
	</body>
</html>
